package com.treasure.service.domain;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class TLoanExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public TLoanExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Long value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Long value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Long value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Long value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Long value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Long value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Long> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Long> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Long value1, Long value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Long value1, Long value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andLoanIdIsNull() {
            addCriterion("loan_id is null");
            return (Criteria) this;
        }

        public Criteria andLoanIdIsNotNull() {
            addCriterion("loan_id is not null");
            return (Criteria) this;
        }

        public Criteria andLoanIdEqualTo(String value) {
            addCriterion("loan_id =", value, "loanId");
            return (Criteria) this;
        }

        public Criteria andLoanIdNotEqualTo(String value) {
            addCriterion("loan_id <>", value, "loanId");
            return (Criteria) this;
        }

        public Criteria andLoanIdGreaterThan(String value) {
            addCriterion("loan_id >", value, "loanId");
            return (Criteria) this;
        }

        public Criteria andLoanIdGreaterThanOrEqualTo(String value) {
            addCriterion("loan_id >=", value, "loanId");
            return (Criteria) this;
        }

        public Criteria andLoanIdLessThan(String value) {
            addCriterion("loan_id <", value, "loanId");
            return (Criteria) this;
        }

        public Criteria andLoanIdLessThanOrEqualTo(String value) {
            addCriterion("loan_id <=", value, "loanId");
            return (Criteria) this;
        }

        public Criteria andLoanIdLike(String value) {
            addCriterion("loan_id like", value, "loanId");
            return (Criteria) this;
        }

        public Criteria andLoanIdNotLike(String value) {
            addCriterion("loan_id not like", value, "loanId");
            return (Criteria) this;
        }

        public Criteria andLoanIdIn(List<String> values) {
            addCriterion("loan_id in", values, "loanId");
            return (Criteria) this;
        }

        public Criteria andLoanIdNotIn(List<String> values) {
            addCriterion("loan_id not in", values, "loanId");
            return (Criteria) this;
        }

        public Criteria andLoanIdBetween(String value1, String value2) {
            addCriterion("loan_id between", value1, value2, "loanId");
            return (Criteria) this;
        }

        public Criteria andLoanIdNotBetween(String value1, String value2) {
            addCriterion("loan_id not between", value1, value2, "loanId");
            return (Criteria) this;
        }

        public Criteria andLoanNameIsNull() {
            addCriterion("loan_name is null");
            return (Criteria) this;
        }

        public Criteria andLoanNameIsNotNull() {
            addCriterion("loan_name is not null");
            return (Criteria) this;
        }

        public Criteria andLoanNameEqualTo(String value) {
            addCriterion("loan_name =", value, "loanName");
            return (Criteria) this;
        }

        public Criteria andLoanNameNotEqualTo(String value) {
            addCriterion("loan_name <>", value, "loanName");
            return (Criteria) this;
        }

        public Criteria andLoanNameGreaterThan(String value) {
            addCriterion("loan_name >", value, "loanName");
            return (Criteria) this;
        }

        public Criteria andLoanNameGreaterThanOrEqualTo(String value) {
            addCriterion("loan_name >=", value, "loanName");
            return (Criteria) this;
        }

        public Criteria andLoanNameLessThan(String value) {
            addCriterion("loan_name <", value, "loanName");
            return (Criteria) this;
        }

        public Criteria andLoanNameLessThanOrEqualTo(String value) {
            addCriterion("loan_name <=", value, "loanName");
            return (Criteria) this;
        }

        public Criteria andLoanNameLike(String value) {
            addCriterion("loan_name like", value, "loanName");
            return (Criteria) this;
        }

        public Criteria andLoanNameNotLike(String value) {
            addCriterion("loan_name not like", value, "loanName");
            return (Criteria) this;
        }

        public Criteria andLoanNameIn(List<String> values) {
            addCriterion("loan_name in", values, "loanName");
            return (Criteria) this;
        }

        public Criteria andLoanNameNotIn(List<String> values) {
            addCriterion("loan_name not in", values, "loanName");
            return (Criteria) this;
        }

        public Criteria andLoanNameBetween(String value1, String value2) {
            addCriterion("loan_name between", value1, value2, "loanName");
            return (Criteria) this;
        }

        public Criteria andLoanNameNotBetween(String value1, String value2) {
            addCriterion("loan_name not between", value1, value2, "loanName");
            return (Criteria) this;
        }

        public Criteria andLogoUrlIsNull() {
            addCriterion("logo_url is null");
            return (Criteria) this;
        }

        public Criteria andLogoUrlIsNotNull() {
            addCriterion("logo_url is not null");
            return (Criteria) this;
        }

        public Criteria andLogoUrlEqualTo(String value) {
            addCriterion("logo_url =", value, "logoUrl");
            return (Criteria) this;
        }

        public Criteria andLogoUrlNotEqualTo(String value) {
            addCriterion("logo_url <>", value, "logoUrl");
            return (Criteria) this;
        }

        public Criteria andLogoUrlGreaterThan(String value) {
            addCriterion("logo_url >", value, "logoUrl");
            return (Criteria) this;
        }

        public Criteria andLogoUrlGreaterThanOrEqualTo(String value) {
            addCriterion("logo_url >=", value, "logoUrl");
            return (Criteria) this;
        }

        public Criteria andLogoUrlLessThan(String value) {
            addCriterion("logo_url <", value, "logoUrl");
            return (Criteria) this;
        }

        public Criteria andLogoUrlLessThanOrEqualTo(String value) {
            addCriterion("logo_url <=", value, "logoUrl");
            return (Criteria) this;
        }

        public Criteria andLogoUrlLike(String value) {
            addCriterion("logo_url like", value, "logoUrl");
            return (Criteria) this;
        }

        public Criteria andLogoUrlNotLike(String value) {
            addCriterion("logo_url not like", value, "logoUrl");
            return (Criteria) this;
        }

        public Criteria andLogoUrlIn(List<String> values) {
            addCriterion("logo_url in", values, "logoUrl");
            return (Criteria) this;
        }

        public Criteria andLogoUrlNotIn(List<String> values) {
            addCriterion("logo_url not in", values, "logoUrl");
            return (Criteria) this;
        }

        public Criteria andLogoUrlBetween(String value1, String value2) {
            addCriterion("logo_url between", value1, value2, "logoUrl");
            return (Criteria) this;
        }

        public Criteria andLogoUrlNotBetween(String value1, String value2) {
            addCriterion("logo_url not between", value1, value2, "logoUrl");
            return (Criteria) this;
        }

        public Criteria andApplyUrlIsNull() {
            addCriterion("apply_url is null");
            return (Criteria) this;
        }

        public Criteria andApplyUrlIsNotNull() {
            addCriterion("apply_url is not null");
            return (Criteria) this;
        }

        public Criteria andApplyUrlEqualTo(String value) {
            addCriterion("apply_url =", value, "applyUrl");
            return (Criteria) this;
        }

        public Criteria andApplyUrlNotEqualTo(String value) {
            addCriterion("apply_url <>", value, "applyUrl");
            return (Criteria) this;
        }

        public Criteria andApplyUrlGreaterThan(String value) {
            addCriterion("apply_url >", value, "applyUrl");
            return (Criteria) this;
        }

        public Criteria andApplyUrlGreaterThanOrEqualTo(String value) {
            addCriterion("apply_url >=", value, "applyUrl");
            return (Criteria) this;
        }

        public Criteria andApplyUrlLessThan(String value) {
            addCriterion("apply_url <", value, "applyUrl");
            return (Criteria) this;
        }

        public Criteria andApplyUrlLessThanOrEqualTo(String value) {
            addCriterion("apply_url <=", value, "applyUrl");
            return (Criteria) this;
        }

        public Criteria andApplyUrlLike(String value) {
            addCriterion("apply_url like", value, "applyUrl");
            return (Criteria) this;
        }

        public Criteria andApplyUrlNotLike(String value) {
            addCriterion("apply_url not like", value, "applyUrl");
            return (Criteria) this;
        }

        public Criteria andApplyUrlIn(List<String> values) {
            addCriterion("apply_url in", values, "applyUrl");
            return (Criteria) this;
        }

        public Criteria andApplyUrlNotIn(List<String> values) {
            addCriterion("apply_url not in", values, "applyUrl");
            return (Criteria) this;
        }

        public Criteria andApplyUrlBetween(String value1, String value2) {
            addCriterion("apply_url between", value1, value2, "applyUrl");
            return (Criteria) this;
        }

        public Criteria andApplyUrlNotBetween(String value1, String value2) {
            addCriterion("apply_url not between", value1, value2, "applyUrl");
            return (Criteria) this;
        }

        public Criteria andLoanDescIsNull() {
            addCriterion("loan_desc is null");
            return (Criteria) this;
        }

        public Criteria andLoanDescIsNotNull() {
            addCriterion("loan_desc is not null");
            return (Criteria) this;
        }

        public Criteria andLoanDescEqualTo(String value) {
            addCriterion("loan_desc =", value, "loanDesc");
            return (Criteria) this;
        }

        public Criteria andLoanDescNotEqualTo(String value) {
            addCriterion("loan_desc <>", value, "loanDesc");
            return (Criteria) this;
        }

        public Criteria andLoanDescGreaterThan(String value) {
            addCriterion("loan_desc >", value, "loanDesc");
            return (Criteria) this;
        }

        public Criteria andLoanDescGreaterThanOrEqualTo(String value) {
            addCriterion("loan_desc >=", value, "loanDesc");
            return (Criteria) this;
        }

        public Criteria andLoanDescLessThan(String value) {
            addCriterion("loan_desc <", value, "loanDesc");
            return (Criteria) this;
        }

        public Criteria andLoanDescLessThanOrEqualTo(String value) {
            addCriterion("loan_desc <=", value, "loanDesc");
            return (Criteria) this;
        }

        public Criteria andLoanDescLike(String value) {
            addCriterion("loan_desc like", value, "loanDesc");
            return (Criteria) this;
        }

        public Criteria andLoanDescNotLike(String value) {
            addCriterion("loan_desc not like", value, "loanDesc");
            return (Criteria) this;
        }

        public Criteria andLoanDescIn(List<String> values) {
            addCriterion("loan_desc in", values, "loanDesc");
            return (Criteria) this;
        }

        public Criteria andLoanDescNotIn(List<String> values) {
            addCriterion("loan_desc not in", values, "loanDesc");
            return (Criteria) this;
        }

        public Criteria andLoanDescBetween(String value1, String value2) {
            addCriterion("loan_desc between", value1, value2, "loanDesc");
            return (Criteria) this;
        }

        public Criteria andLoanDescNotBetween(String value1, String value2) {
            addCriterion("loan_desc not between", value1, value2, "loanDesc");
            return (Criteria) this;
        }

        public Criteria andMaxAmountIsNull() {
            addCriterion("max_amount is null");
            return (Criteria) this;
        }

        public Criteria andMaxAmountIsNotNull() {
            addCriterion("max_amount is not null");
            return (Criteria) this;
        }

        public Criteria andMaxAmountEqualTo(String value) {
            addCriterion("max_amount =", value, "maxAmount");
            return (Criteria) this;
        }

        public Criteria andMaxAmountNotEqualTo(String value) {
            addCriterion("max_amount <>", value, "maxAmount");
            return (Criteria) this;
        }

        public Criteria andMaxAmountGreaterThan(String value) {
            addCriterion("max_amount >", value, "maxAmount");
            return (Criteria) this;
        }

        public Criteria andMaxAmountGreaterThanOrEqualTo(String value) {
            addCriterion("max_amount >=", value, "maxAmount");
            return (Criteria) this;
        }

        public Criteria andMaxAmountLessThan(String value) {
            addCriterion("max_amount <", value, "maxAmount");
            return (Criteria) this;
        }

        public Criteria andMaxAmountLessThanOrEqualTo(String value) {
            addCriterion("max_amount <=", value, "maxAmount");
            return (Criteria) this;
        }

        public Criteria andMaxAmountLike(String value) {
            addCriterion("max_amount like", value, "maxAmount");
            return (Criteria) this;
        }

        public Criteria andMaxAmountNotLike(String value) {
            addCriterion("max_amount not like", value, "maxAmount");
            return (Criteria) this;
        }

        public Criteria andMaxAmountIn(List<String> values) {
            addCriterion("max_amount in", values, "maxAmount");
            return (Criteria) this;
        }

        public Criteria andMaxAmountNotIn(List<String> values) {
            addCriterion("max_amount not in", values, "maxAmount");
            return (Criteria) this;
        }

        public Criteria andMaxAmountBetween(String value1, String value2) {
            addCriterion("max_amount between", value1, value2, "maxAmount");
            return (Criteria) this;
        }

        public Criteria andMaxAmountNotBetween(String value1, String value2) {
            addCriterion("max_amount not between", value1, value2, "maxAmount");
            return (Criteria) this;
        }

        public Criteria andMobileEleIsNull() {
            addCriterion("mobile_ele is null");
            return (Criteria) this;
        }

        public Criteria andMobileEleIsNotNull() {
            addCriterion("mobile_ele is not null");
            return (Criteria) this;
        }

        public Criteria andMobileEleEqualTo(String value) {
            addCriterion("mobile_ele =", value, "mobileEle");
            return (Criteria) this;
        }

        public Criteria andMobileEleNotEqualTo(String value) {
            addCriterion("mobile_ele <>", value, "mobileEle");
            return (Criteria) this;
        }

        public Criteria andMobileEleGreaterThan(String value) {
            addCriterion("mobile_ele >", value, "mobileEle");
            return (Criteria) this;
        }

        public Criteria andMobileEleGreaterThanOrEqualTo(String value) {
            addCriterion("mobile_ele >=", value, "mobileEle");
            return (Criteria) this;
        }

        public Criteria andMobileEleLessThan(String value) {
            addCriterion("mobile_ele <", value, "mobileEle");
            return (Criteria) this;
        }

        public Criteria andMobileEleLessThanOrEqualTo(String value) {
            addCriterion("mobile_ele <=", value, "mobileEle");
            return (Criteria) this;
        }

        public Criteria andMobileEleLike(String value) {
            addCriterion("mobile_ele like", value, "mobileEle");
            return (Criteria) this;
        }

        public Criteria andMobileEleNotLike(String value) {
            addCriterion("mobile_ele not like", value, "mobileEle");
            return (Criteria) this;
        }

        public Criteria andMobileEleIn(List<String> values) {
            addCriterion("mobile_ele in", values, "mobileEle");
            return (Criteria) this;
        }

        public Criteria andMobileEleNotIn(List<String> values) {
            addCriterion("mobile_ele not in", values, "mobileEle");
            return (Criteria) this;
        }

        public Criteria andMobileEleBetween(String value1, String value2) {
            addCriterion("mobile_ele between", value1, value2, "mobileEle");
            return (Criteria) this;
        }

        public Criteria andMobileEleNotBetween(String value1, String value2) {
            addCriterion("mobile_ele not between", value1, value2, "mobileEle");
            return (Criteria) this;
        }

        public Criteria andRealnameEleIsNull() {
            addCriterion("realname_ele is null");
            return (Criteria) this;
        }

        public Criteria andRealnameEleIsNotNull() {
            addCriterion("realname_ele is not null");
            return (Criteria) this;
        }

        public Criteria andRealnameEleEqualTo(String value) {
            addCriterion("realname_ele =", value, "realnameEle");
            return (Criteria) this;
        }

        public Criteria andRealnameEleNotEqualTo(String value) {
            addCriterion("realname_ele <>", value, "realnameEle");
            return (Criteria) this;
        }

        public Criteria andRealnameEleGreaterThan(String value) {
            addCriterion("realname_ele >", value, "realnameEle");
            return (Criteria) this;
        }

        public Criteria andRealnameEleGreaterThanOrEqualTo(String value) {
            addCriterion("realname_ele >=", value, "realnameEle");
            return (Criteria) this;
        }

        public Criteria andRealnameEleLessThan(String value) {
            addCriterion("realname_ele <", value, "realnameEle");
            return (Criteria) this;
        }

        public Criteria andRealnameEleLessThanOrEqualTo(String value) {
            addCriterion("realname_ele <=", value, "realnameEle");
            return (Criteria) this;
        }

        public Criteria andRealnameEleLike(String value) {
            addCriterion("realname_ele like", value, "realnameEle");
            return (Criteria) this;
        }

        public Criteria andRealnameEleNotLike(String value) {
            addCriterion("realname_ele not like", value, "realnameEle");
            return (Criteria) this;
        }

        public Criteria andRealnameEleIn(List<String> values) {
            addCriterion("realname_ele in", values, "realnameEle");
            return (Criteria) this;
        }

        public Criteria andRealnameEleNotIn(List<String> values) {
            addCriterion("realname_ele not in", values, "realnameEle");
            return (Criteria) this;
        }

        public Criteria andRealnameEleBetween(String value1, String value2) {
            addCriterion("realname_ele between", value1, value2, "realnameEle");
            return (Criteria) this;
        }

        public Criteria andRealnameEleNotBetween(String value1, String value2) {
            addCriterion("realname_ele not between", value1, value2, "realnameEle");
            return (Criteria) this;
        }

        public Criteria andCertnoEleIsNull() {
            addCriterion("certno_ele is null");
            return (Criteria) this;
        }

        public Criteria andCertnoEleIsNotNull() {
            addCriterion("certno_ele is not null");
            return (Criteria) this;
        }

        public Criteria andCertnoEleEqualTo(String value) {
            addCriterion("certno_ele =", value, "certnoEle");
            return (Criteria) this;
        }

        public Criteria andCertnoEleNotEqualTo(String value) {
            addCriterion("certno_ele <>", value, "certnoEle");
            return (Criteria) this;
        }

        public Criteria andCertnoEleGreaterThan(String value) {
            addCriterion("certno_ele >", value, "certnoEle");
            return (Criteria) this;
        }

        public Criteria andCertnoEleGreaterThanOrEqualTo(String value) {
            addCriterion("certno_ele >=", value, "certnoEle");
            return (Criteria) this;
        }

        public Criteria andCertnoEleLessThan(String value) {
            addCriterion("certno_ele <", value, "certnoEle");
            return (Criteria) this;
        }

        public Criteria andCertnoEleLessThanOrEqualTo(String value) {
            addCriterion("certno_ele <=", value, "certnoEle");
            return (Criteria) this;
        }

        public Criteria andCertnoEleLike(String value) {
            addCriterion("certno_ele like", value, "certnoEle");
            return (Criteria) this;
        }

        public Criteria andCertnoEleNotLike(String value) {
            addCriterion("certno_ele not like", value, "certnoEle");
            return (Criteria) this;
        }

        public Criteria andCertnoEleIn(List<String> values) {
            addCriterion("certno_ele in", values, "certnoEle");
            return (Criteria) this;
        }

        public Criteria andCertnoEleNotIn(List<String> values) {
            addCriterion("certno_ele not in", values, "certnoEle");
            return (Criteria) this;
        }

        public Criteria andCertnoEleBetween(String value1, String value2) {
            addCriterion("certno_ele between", value1, value2, "certnoEle");
            return (Criteria) this;
        }

        public Criteria andCertnoEleNotBetween(String value1, String value2) {
            addCriterion("certno_ele not between", value1, value2, "certnoEle");
            return (Criteria) this;
        }

        public Criteria andIsHotIsNull() {
            addCriterion("is_hot is null");
            return (Criteria) this;
        }

        public Criteria andIsHotIsNotNull() {
            addCriterion("is_hot is not null");
            return (Criteria) this;
        }

        public Criteria andIsHotEqualTo(String value) {
            addCriterion("is_hot =", value, "isHot");
            return (Criteria) this;
        }

        public Criteria andIsHotNotEqualTo(String value) {
            addCriterion("is_hot <>", value, "isHot");
            return (Criteria) this;
        }

        public Criteria andIsHotGreaterThan(String value) {
            addCriterion("is_hot >", value, "isHot");
            return (Criteria) this;
        }

        public Criteria andIsHotGreaterThanOrEqualTo(String value) {
            addCriterion("is_hot >=", value, "isHot");
            return (Criteria) this;
        }

        public Criteria andIsHotLessThan(String value) {
            addCriterion("is_hot <", value, "isHot");
            return (Criteria) this;
        }

        public Criteria andIsHotLessThanOrEqualTo(String value) {
            addCriterion("is_hot <=", value, "isHot");
            return (Criteria) this;
        }

        public Criteria andIsHotLike(String value) {
            addCriterion("is_hot like", value, "isHot");
            return (Criteria) this;
        }

        public Criteria andIsHotNotLike(String value) {
            addCriterion("is_hot not like", value, "isHot");
            return (Criteria) this;
        }

        public Criteria andIsHotIn(List<String> values) {
            addCriterion("is_hot in", values, "isHot");
            return (Criteria) this;
        }

        public Criteria andIsHotNotIn(List<String> values) {
            addCriterion("is_hot not in", values, "isHot");
            return (Criteria) this;
        }

        public Criteria andIsHotBetween(String value1, String value2) {
            addCriterion("is_hot between", value1, value2, "isHot");
            return (Criteria) this;
        }

        public Criteria andIsHotNotBetween(String value1, String value2) {
            addCriterion("is_hot not between", value1, value2, "isHot");
            return (Criteria) this;
        }

        public Criteria andStatusIsNull() {
            addCriterion("status is null");
            return (Criteria) this;
        }

        public Criteria andStatusIsNotNull() {
            addCriterion("status is not null");
            return (Criteria) this;
        }

        public Criteria andStatusEqualTo(Integer value) {
            addCriterion("status =", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotEqualTo(Integer value) {
            addCriterion("status <>", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThan(Integer value) {
            addCriterion("status >", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThanOrEqualTo(Integer value) {
            addCriterion("status >=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThan(Integer value) {
            addCriterion("status <", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThanOrEqualTo(Integer value) {
            addCriterion("status <=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusIn(List<Integer> values) {
            addCriterion("status in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotIn(List<Integer> values) {
            addCriterion("status not in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusBetween(Integer value1, Integer value2) {
            addCriterion("status between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotBetween(Integer value1, Integer value2) {
            addCriterion("status not between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andLoanChannelIsNull() {
            addCriterion("loan_channel is null");
            return (Criteria) this;
        }

        public Criteria andLoanChannelIsNotNull() {
            addCriterion("loan_channel is not null");
            return (Criteria) this;
        }

        public Criteria andLoanChannelEqualTo(String value) {
            addCriterion("loan_channel =", value, "loanChannel");
            return (Criteria) this;
        }

        public Criteria andLoanChannelNotEqualTo(String value) {
            addCriterion("loan_channel <>", value, "loanChannel");
            return (Criteria) this;
        }

        public Criteria andLoanChannelGreaterThan(String value) {
            addCriterion("loan_channel >", value, "loanChannel");
            return (Criteria) this;
        }

        public Criteria andLoanChannelGreaterThanOrEqualTo(String value) {
            addCriterion("loan_channel >=", value, "loanChannel");
            return (Criteria) this;
        }

        public Criteria andLoanChannelLessThan(String value) {
            addCriterion("loan_channel <", value, "loanChannel");
            return (Criteria) this;
        }

        public Criteria andLoanChannelLessThanOrEqualTo(String value) {
            addCriterion("loan_channel <=", value, "loanChannel");
            return (Criteria) this;
        }

        public Criteria andLoanChannelLike(String value) {
            addCriterion("loan_channel like", value, "loanChannel");
            return (Criteria) this;
        }

        public Criteria andLoanChannelNotLike(String value) {
            addCriterion("loan_channel not like", value, "loanChannel");
            return (Criteria) this;
        }

        public Criteria andLoanChannelIn(List<String> values) {
            addCriterion("loan_channel in", values, "loanChannel");
            return (Criteria) this;
        }

        public Criteria andLoanChannelNotIn(List<String> values) {
            addCriterion("loan_channel not in", values, "loanChannel");
            return (Criteria) this;
        }

        public Criteria andLoanChannelBetween(String value1, String value2) {
            addCriterion("loan_channel between", value1, value2, "loanChannel");
            return (Criteria) this;
        }

        public Criteria andLoanChannelNotBetween(String value1, String value2) {
            addCriterion("loan_channel not between", value1, value2, "loanChannel");
            return (Criteria) this;
        }

        public Criteria andCreatedTimeIsNull() {
            addCriterion("created_time is null");
            return (Criteria) this;
        }

        public Criteria andCreatedTimeIsNotNull() {
            addCriterion("created_time is not null");
            return (Criteria) this;
        }

        public Criteria andCreatedTimeEqualTo(Date value) {
            addCriterion("created_time =", value, "createdTime");
            return (Criteria) this;
        }

        public Criteria andCreatedTimeNotEqualTo(Date value) {
            addCriterion("created_time <>", value, "createdTime");
            return (Criteria) this;
        }

        public Criteria andCreatedTimeGreaterThan(Date value) {
            addCriterion("created_time >", value, "createdTime");
            return (Criteria) this;
        }

        public Criteria andCreatedTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("created_time >=", value, "createdTime");
            return (Criteria) this;
        }

        public Criteria andCreatedTimeLessThan(Date value) {
            addCriterion("created_time <", value, "createdTime");
            return (Criteria) this;
        }

        public Criteria andCreatedTimeLessThanOrEqualTo(Date value) {
            addCriterion("created_time <=", value, "createdTime");
            return (Criteria) this;
        }

        public Criteria andCreatedTimeIn(List<Date> values) {
            addCriterion("created_time in", values, "createdTime");
            return (Criteria) this;
        }

        public Criteria andCreatedTimeNotIn(List<Date> values) {
            addCriterion("created_time not in", values, "createdTime");
            return (Criteria) this;
        }

        public Criteria andCreatedTimeBetween(Date value1, Date value2) {
            addCriterion("created_time between", value1, value2, "createdTime");
            return (Criteria) this;
        }

        public Criteria andCreatedTimeNotBetween(Date value1, Date value2) {
            addCriterion("created_time not between", value1, value2, "createdTime");
            return (Criteria) this;
        }

        public Criteria andModifiedTimeIsNull() {
            addCriterion("modified_time is null");
            return (Criteria) this;
        }

        public Criteria andModifiedTimeIsNotNull() {
            addCriterion("modified_time is not null");
            return (Criteria) this;
        }

        public Criteria andModifiedTimeEqualTo(Date value) {
            addCriterion("modified_time =", value, "modifiedTime");
            return (Criteria) this;
        }

        public Criteria andModifiedTimeNotEqualTo(Date value) {
            addCriterion("modified_time <>", value, "modifiedTime");
            return (Criteria) this;
        }

        public Criteria andModifiedTimeGreaterThan(Date value) {
            addCriterion("modified_time >", value, "modifiedTime");
            return (Criteria) this;
        }

        public Criteria andModifiedTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("modified_time >=", value, "modifiedTime");
            return (Criteria) this;
        }

        public Criteria andModifiedTimeLessThan(Date value) {
            addCriterion("modified_time <", value, "modifiedTime");
            return (Criteria) this;
        }

        public Criteria andModifiedTimeLessThanOrEqualTo(Date value) {
            addCriterion("modified_time <=", value, "modifiedTime");
            return (Criteria) this;
        }

        public Criteria andModifiedTimeIn(List<Date> values) {
            addCriterion("modified_time in", values, "modifiedTime");
            return (Criteria) this;
        }

        public Criteria andModifiedTimeNotIn(List<Date> values) {
            addCriterion("modified_time not in", values, "modifiedTime");
            return (Criteria) this;
        }

        public Criteria andModifiedTimeBetween(Date value1, Date value2) {
            addCriterion("modified_time between", value1, value2, "modifiedTime");
            return (Criteria) this;
        }

        public Criteria andModifiedTimeNotBetween(Date value1, Date value2) {
            addCriterion("modified_time not between", value1, value2, "modifiedTime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}